<template>
  <div class="not-found">
    <div class="content">
      <i class="material-icons">error_outline</i>
      <h1>404</h1>
      <p>抱歉，您访问的页面不存在</p>
      <button class="back-btn" @click="goBack">
        <i class="material-icons">arrow_back</i>
        返回上一页
      </button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound',
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.not-found {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.content {
  text-align: center;
  padding: 2rem;
}

.content i {
  font-size: 4rem;
  color: #16a34a;
  margin-bottom: 1rem;
}

h1 {
  font-size: 6rem;
  font-weight: 700;
  color: #16a34a;
  margin: 0;
  line-height: 1;
}

p {
  font-size: 1.25rem;
  color: #4b5563;
  margin: 1rem 0 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16a34a;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.back-btn i {
  font-size: 1.25rem;
  margin: 0;
}
</style> 